﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GFrame.Shadow
{
    /// <summary>
    /// 规则器
    /// Jay.Gu
    /// 2009-3-29
    /// </summary>
    public class ShadowRule: IShadowRule
    {
        private int _iPageIndex;
        private int _iPageSize;
        private int _iPageCount;
        private int _iRecordCount;

        private string _strOrder;

        ShadowState _state = ShadowState.Auto;

        SafetyLevel _level = SafetyLevel.Auto;

        #region IShadowEntityRule Members

        public string OrderString
        {
            get
            {
                return _strOrder;
            }
            set
            {
                _strOrder = value;
            }
        }

        /// <summary>
        /// 实体对象状态
        /// </summary>
        public ShadowState ShadowState
        {
            get
            {
                return _state;
            }
            set
            {
                _state = value;
            }
        }

        /// <summary>
        /// 安全检查级别
        /// </summary>
        public SafetyLevel SafeLevel
        {
            get
            {
                return _level;
            }
            set
            {
                _level = value;
            }
        }

        public int PageCount
        {
            get
            {
                return _iPageCount;
            }
            set
            {
                _iPageCount = value;
            }
        }

        public int RecordCount
        {
            get
            {
                return _iRecordCount;
            }
            set
            {
                _iRecordCount = value;
            }
        }

        public int PageSize
        {
            get
            {
                return _iPageSize;
            }
            set
            {
                _iPageSize = value;
            }
        }

        public int PageIndex
        {
            get
            {
                return _iPageIndex;
            }
            set
            {
                _iPageIndex = value;
            }
        }

        #endregion
    }
}
